import org.aswing.util.HashMap;

class org.aswing.plaf.custom.css.Components
{
	public static var LEAF:Array = ["button", "toggle-button", "radio-button", "check-box", "accordion",
									"tabbed-pane", "scroll-bar", "scroll-pane", "viewport",  "panel",
									"window", "frame", "label", "tool-tip", "list", "text-field", "text-area",
									"tool-bar", "combo-box", "separator", "progress-bar", "table", "table-header", 
									"slider"]
	
	public static var ROOT:Array = ["application"]
	
	private static var names:HashMap;
	
	public static function getUIDefaultsComponentName(cssName:String):String{
		if(names == null){
			names = new HashMap();
			names.put("button","Button")
			names.put("toggle-button","ToggleButton")
			names.put("radio-button","RadioButton")
			names.put("check-box","CheckBox")
			names.put("accordion","Accordion")
			names.put("tabbed-pane","TabbedPane")
			names.put("scroll-bar","ScrollBar")
			names.put("scroll-pane","ScrollPane")			
			names.put("viewport","Viewport")
			names.put("panel","Panel")
			names.put("window","Window")			
			names.put("frame","Frame")
			names.put("label","Label")
			names.put("tool-tip","Tooltip")
			names.put("list","List")
			names.put("text-field","TextField")
			names.put("text-area","TextArea")
			names.put("tool-bar","ToolBar")
			names.put("combo-box","ComboBox")
			names.put("separator","Separator")
			names.put("progress-bar","ProgressBar")
			names.put("table","Table")
			names.put("table-header","TableHeader")
			names.put("slider","Slider")
		}
		if(!names.containsKey(cssName))
			trace("ERROR: Unknown blockName: " + cssName)
		return names.get(cssName)
	}
}
